package com.reyi.book.pojo;

public class TUser implements Comparable<TUser>{
    private String uid;

    private String background;

    private String gradeTerm;

    private Integer likeWeek;

    private String nickname;

    private String icon;

    private Integer finishedWeek;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid == null ? null : uid.trim();
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background == null ? null : background.trim();
    }

    public String getGradeTerm() {
        return gradeTerm;
    }

    public void setGradeTerm(String gradeTerm) {
        this.gradeTerm = gradeTerm == null ? null : gradeTerm.trim();
    }

    public Integer getLikeWeek() {
        return likeWeek;
    }

    public void setLikeWeek(Integer likeWeek) {
        this.likeWeek = likeWeek;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public Integer getFinishedWeek() {
        return finishedWeek;
    }

    public void setFinishedWeek(Integer finishedWeek) {
        this.finishedWeek = finishedWeek;
    }

	@Override
	public int compareTo(TUser o) {
		
		return o.getFinishedWeek().compareTo(this.getFinishedWeek());
	}
}